const mongoose = require('mongoose')

// users集合
const Schema = mongoose.Schema

// 集合规范
const HotType = {
    title:String,   //标题
    content:String, //内容
    isPublish:Number,  //未发布 已发布
    cover:String,   //封面
    category:Number,  //1最新动态  2典型案例  3通知公告
    editTime:Date
}

// 创建模型
 const HotModel =  mongoose.model('hot', new Schema(HotType))

module.exports = HotModel